package com.newtouch.cq.base.starter.business.mapper;

import com.newtouch.cq.base.starter.business.entity.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 系统角色表 Mapper 接口
 * </p>
 *
 * @author Alex
 * @since 2021-08-02
 */
public interface BaseSysRoleMapper extends BaseMapper<SysRole> {
    /**
     * 通过用户标识获取角色
     * @param userId
     * @return
     */
    List<SysRole> getUserRole(long userId);
}
